package edu.zut.hb.ambition.rescue.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RescueMapper;
import com.ruoyi.system.domain.Rescue;
import com.ruoyi.system.service.IRescueService;


@Service
public class RescueMangerImpl implements IRescueService
{
    @Autowired
    private RescueMapper rescueMapper;


    @Override
    public Rescue selectRescueById(Long id)
    {
        return rescueMapper.selectRescueById(id);
    }

    @Override
    public List<Rescue> selectRescueList(Rescue rescue)
    {
        return rescueMapper.selectRescueList(rescue);
    }


    @Override
    public int insertRescue(Rescue rescue)
    {
        return rescueMapper.insertRescue(rescue);
    }


    @Override
    public int updateRescue(Rescue rescue)
    {
        return rescueMapper.updateRescue(rescue);
    }


    @Override
    public int deleteRescueByIds(Long[] ids)
    {
        return rescueMapper.deleteRescueByIds(ids);
    }


    @Override
    public int deleteRescueById(Long id)
    {
        return rescueMapper.deleteRescueById(id);
    }
}
